import React, { Component } from 'react'
import observer from '../utils/observer'
export default class Third extends Component {
  constructor(){
    super()
    this.state={
        msg:''
    }
  }
  componentDidMount(){
    observer.subscribe((msg)=>{
      this.setState({msg})
    })
  }
  render() {
    return (
        <div style={{flex:1,backgroundColor:'skyblue'}}>
            <h1>小师妹</h1>
            <div>
                {this.state.msg}
            </div>
        </div>
    )
  }
}
